package org.demo.jwt.biz;

import com.nimbusds.jose.JOSEException;
import java.text.ParseException;

public interface JwtTokenService {

  PayloadDto getDefaultPayloadDto();

  String generateTokenByHMAC(String payloadStr, String secret) throws JOSEException;

  PayloadDto verifyTokenByHMAC(String token, String secret) throws ParseException, JOSEException;
}
